package com.download.utils;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

import sun.audio.AudioPlayer;

public class AudioUtil {

    private AudioUtil(){
    }

    public static void play(String filePath) throws IOException {
        InputStream inputStream = new FileInputStream(new File(filePath));
        AudioPlayer.player.start(inputStream);
    }
}
